package com.ice.work.moment.facade.crawler.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.honeybee.cloud.framework.common.mapper.BaseCovertMapper;
import com.honeybee.cloud.framework.common.page.Page;
import com.ice.work.moment.facade.crawler.dto.InstitutionalPositionDTO;
import com.ice.work.moment.facade.crawler.model.InstitutionalPosition;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;

/**
 * @Description InstitutionalPositionConvertMapper
 * @Author DELL
 * @Create 2019-01-09
 * @Since 1.0.0
 */
@Mapper
@SuppressWarnings("all")
public interface InstitutionalPositionConvertMapper extends BaseCovertMapper {
    InstitutionalPositionConvertMapper INSTANCE = Mappers.getMapper(InstitutionalPositionConvertMapper.class);

    /**
     * to dto
     *
     * @param from
     * @return
     */
    InstitutionalPositionDTO toDTO(InstitutionalPosition from);

    /**
     * to dtos
     *
     * @param from
     * @return
     */
    List<InstitutionalPositionDTO> toDTO(Collection<InstitutionalPosition> from);

    /**
     * to page
     *
     * @param from
     * @return
     */
    Page<InstitutionalPositionDTO> toDTO(IPage<InstitutionalPosition> from);
}
